import Login from '../view/login/login';
import Admin from '../view/admin/admin';
import Loading from '../component/Loading';
export const routerpop = [
  {
    path: '*',
    element: <Loading />,
  },
  {
    path: '/',
    element: <Login />,
  },
  {
    path: '/login',
    element: <Login />,
  },
  {
    path: '/admin',
    element: <Admin />,
    children: [],
  },
];

export const adminRouter = [
  {
    key: '1',
    icon: 'UserOutlined',
    label: 'SPA服务',
    children: [
      {
        key: '1-1',
        icon: 'UserOutlined',
        path: '/spababy',
        url: 'spaCenter/spababy',
        label: 'baby spa排班',
      },
    ],
  },
  {
    key: '2',
    icon: 'UserOutlined',
    label: '系统管理',
    children: [
      {
        key: '2-1',
        icon: 'UserOutlined',
        label: '资源',
        children: [
          {
            key: '2-1-1',
            icon: 'UserOutlined',
            path: '/keyValueParameters',
            url: 'systemCenter/systemSource/keyValueParameters',
            label: '键值参数',
          },
          {
            key: '2-1-2',
            icon: 'UserOutlined',
            path: '/functionalModule',
            url: 'systemCenter/systemSource/functionalModule',
            label: '功能模块',
          },
        ],
      },
      {
        key: '2-2',
        icon: 'UserOutlined',
        label: '权限',
        children: [
          {
            key: '2-2-1',
            icon: 'UserOutlined',
            path: '/organizationalStructure',
            url: 'systemCenter/systemAuthority/organizationalStructure',
            label: '组织架构',
          },
        ],
      },
    ],
  },
];
